<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:apks="http://java.sun.com/jsf/composite/apks"
    template="../usersTemplate.xhtml">
    <f:metadata>
        <f:viewParam name="id" value="#{applicationManagedBean.selectedId}"/>
    </f:metadata>
    <ui:define name="title">
        Aplikacije
    </ui:define>
    <ui:define name="center">
        <h:form>
            <p:panel id="viwApp" header="#{applicationManagedBean.selectedApplication}">
                <table>
                    <tr>
                        <td colspan="2">
                            <h:outputText value="#{applicationManagedBean.selectedApplication.description}"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <h:outputText value="Skinuta #{applicationManagedBean.selectedApplication.downloads} puta."/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <p:rating value="#{applicationManagedBean.selectedApplication.rating}" disabled="true"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                    <p:graphicImage value="/imageservlet?appId=#{applicationManagedBean.selectedId}&amp;image=1"/>
                        </td>
                        <td>
                            <p:graphicImage value="/imageservlet?appId=#{applicationManagedBean.selectedId}&amp;image=2"/>
                        </td>
                    </tr>
                </table>
            </p:panel>
        </h:form>
    </ui:define>
</ui:composition>